//
//  QuotesSectionFooterView.m
//  CBT
//
//  Created by Mr.Zhang on 2019/1/7.
//  Copyright © 2019 Mr.Zhang. All rights reserved.
//

#import "QuotesSectionFooterView.h"

@implementation QuotesSectionFooterView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self == [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        [self initSubViews];
    }
    return self;
}

- (void)initSubViews
{
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(15, 0, ScreenNarrowSide - 30, CGRectGetHeight(self.bounds))];
    view.backgroundColor = [UIColor whiteColor];
    [self addSubview:view];
    
    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(5, 5)];
    CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
    maskLayer.frame = view.bounds;
    maskLayer.path  = maskPath.CGPath;
    view.layer.mask = maskLayer;
}

@end
